<?php

namespace common\models\school;

use Yii;

/**
 * This is the model class for table "{{%school_data}}".
 *
 * @property int $id
 * @property string $school_id 学校ID
 * @property string $content 学校描述
 */
class SchoolData extends \common\base\ActiveRecord {

    /**
     * {@inheritdoc}
     */
    public static function tableName() {
        return '{{%school_data}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules() {
        return [
            [['school_id'], 'integer'],
            [['content'], 'required'],
            [['content'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels() {
        return [
            'id' => 'ID',
            'school_id' => '学校ID',
            'content' => '学校描述',
        ];
    }

}
